package com.ruoyi.project.operationalsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.operationalsystem.mapper.VDeclareMapper;
import com.ruoyi.project.operationalsystem.domain.VDeclare;
import com.ruoyi.project.operationalsystem.service.IVDeclareService;

/**
 * 故障申报Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-05-09
 */
@Service
public class VDeclareServiceImpl implements IVDeclareService 
{
    @Autowired
    private VDeclareMapper vDeclareMapper;

    /**
     * 查询故障申报
     * 
     * @param id 故障申报ID
     * @return 故障申报
     */
    @Override
    public VDeclare selectVDeclareById(Long id)
    {
        return vDeclareMapper.selectVDeclareById(id);
    }

    /**
     * 查询故障申报列表
     * 
     * @param vDeclare 故障申报
     * @return 故障申报
     */
    @Override
    public List<VDeclare> selectVDeclareList(VDeclare vDeclare)
    {
        return vDeclareMapper.selectVDeclareList(vDeclare);
    }

    /**
     * 新增故障申报
     * 
     * @param vDeclare 故障申报
     * @return 结果
     */
    @Override
    public int insertVDeclare(VDeclare vDeclare)
    {
        return vDeclareMapper.insertVDeclare(vDeclare);
    }

    /**
     * 修改故障申报
     * 
     * @param vDeclare 故障申报
     * @return 结果
     */
    @Override
    public int updateVDeclare(VDeclare vDeclare)
    {
        return vDeclareMapper.updateVDeclare(vDeclare);
    }

    /**
     * 批量删除故障申报
     * 
     * @param ids 需要删除的故障申报ID
     * @return 结果
     */
    @Override
    public int deleteVDeclareByIds(Long[] ids)
    {
        return vDeclareMapper.deleteVDeclareByIds(ids);
    }

    /**
     * 删除故障申报信息
     * 
     * @param id 故障申报ID
     * @return 结果
     */
    @Override
    public int deleteVDeclareById(Long id)
    {
        return vDeclareMapper.deleteVDeclareById(id);
    }
}
